﻿using System;
using System.ComponentModel;
using System.Xml.Serialization;
using DevExpress.Xpo;
using DevExpress.Xpo.Metadata;
using DevExpress.Xpo.Helpers;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    [Persistent("TopOrderGuest")]
    public class OrderGuest : BaseObject
    {
        //begin
        public OrderGuest()
        {}
        public OrderGuest(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private string _OrderId;
        public string OrderId
        {
            get
            {
                return _OrderId;
            }
            set
            {
                SetPropertyValue("OrderId", ref _OrderId, value);
            }
        }
        private long _RoomPos;
        public long RoomPos
        {
            get
            {
                return _RoomPos;
            }
            set
            {
                SetPropertyValue("RoomPos", ref _RoomPos, value);
            }
        }
        private long _PersonPos;
        public long PersonPos
        {
            get
            {
                return _PersonPos;
            }
            set
            {
                SetPropertyValue("PersonPos", ref _PersonPos, value);
            }
        }
        private string _Name;
        public string Name
        {
            get
            {
                return _Name;
            }
            set
            {
                SetPropertyValue("Name", ref _Name, value);
            }
        }
        private string _Tel;
        public string Tel
        {
            get
            {
                return _Tel;
            }
            set
            {
                SetPropertyValue("Tel", ref _Tel, value);
            }
        }
        private HotelOrder _HotelOrder;
        [Association("HotelOrderGuests", typeof(HotelOrder))]
        public HotelOrder HotelOrder
        {
            get
            {
                return _HotelOrder;
            }
            set
            {
                SetPropertyValue("HotelOrder", ref _HotelOrder, value);
            }
        }
        //end

    }
}
